package  
{
	import flash.events.Event;
	
	/**
	 * Tab data keeper event
	 */
	public class TabDataEvent extends Event 
	{
		////////////////////////////////////////////////////
		// 
		////////////////////////////////////////////////////
		
		public static const CURRENT_CLASS_CHANGED:String = "currentClassChanged";
		public static const CURRENT_CLASS_FAILED:String = "currentClassFailed";
		public static const CLONE_READY:String = "cloneReady";
		
		////////////////////////////////////////////////////
		// 
		////////////////////////////////////////////////////
		
		public var className:String;
		public var data:Object;
		
		////////////////////////////////////////////////////
		// 
		////////////////////////////////////////////////////
		
		public function TabDataEvent(type:String, className:String, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{
			super(type, bubbles, cancelable);
			this.className = className;
			this.data = data;
		}
		
		override public function clone():Event
		{
			return new TabDataEvent(type, className, data, bubbles, cancelable);
		}
	}

}